package springapp.web.exceptions;

/**
 * @author sad
 */
public class ValidationException extends RuntimeException {

    int code = 400;

    public ValidationException(String message) {
        super(message);
    }

    public ValidationException(String message, int httpCode) {
        super(message);
        code = httpCode;
    }

    public int getCode() {
        return code;
    }

}
